<!DOCTYPE html>
<html>
  <head>
    <title>二审客户管理</title>
    <#include "/inc/base-style.ftl">
    <link rel="stylesheet" href="${staticPath}/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css">
    <#include "/style/auditForm/form-style.ftl">
  </head>
  <body class="${bodyClass}">
    <div class="wrapper">
      <!-- Main Header -->
     <#include "/inc/main-header.ftl">
      <!-- Left side column. contains the logo and sidebar -->
       <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
          <#include "/inc/slidebar-menu.ftl">
        </section>
        <!-- /.sidebar -->
      </aside>

   <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
			二审客户列表	 
          </h1>
        </section>

        <!-- Main content -->
        <section class="content">
			<!-- query start -->
		<div class="panel panel-default">
			 <div class="panel-body">
				 <form class="form-horizontal" id="queryForm" role="form" action ="/crm/auditrecord/secondAuditList" method ="get">
		          <div class="control-group form-group"> 
		              <label class="control-label iinputfirst col-sm-2">会员审核状态:</label> 
						<div class="col-sm-2">
						   <select class="form-control" id="status" name ="status"  style="width: 180px;">
									<option value=-1>全部</option>
									<#list dicts as dict>
									<#if dict.itemKey=="${status}">
									<option value="${dict.itemKey}" selected = "selected">${dict.itemName}</option>
									<#else>
									       <option value="${dict.itemKey}">${dict.itemName}</option>
									 </#if>
									</#list> 
						   </select>
						</div>
						 <label class="control-label iinput col-sm-2">提交时间开始:</label> 
						<div class="col-sm-2">
						   <input type="text" id="subTime1" name ="subTime1" value ="${subTime1}"  class="form-control my_timepicker" style="width: 180px;"/>  
						</div>
						 <label class="control-label iinput col-sm-2">提交时间结束:</label> 
						<div class="col-sm-2">
						  <input type="text" id="subTime2" name ="subTime2" value ="${subTime2}"   class="form-control my_timepicker"  style="width: 180px;"/>
						</div>
		            </div>
					<div class="control-group form-group ">
						 <label class="control-label iinputfirst col-sm-2">姓名:</label> 
						<div class="col-sm-2">
                           <input type="text" id="uname" name ="uname" value ="${uname}"   class="form-control" style="width: 180px;"/>
						</div>
						<div class="col-sm-8">
                            <input type="submit"  class="btn btn-primary btn-search" value="查询" />						
                            <input type="reset" onclick="resetQuery('auditrecord','secondAuditList');return false;"  class="btn btn-info " value="重置" /> 
                        </div>
					</div>
			    </form>
			    </div>
			</div>
			<!-- query end -->
		<!-- /.box-header -->
			<div class="box-body">
				<table id="example" class="table table-hover">
					<thead>
						<tr>
							<th width="20">ID</th>
							<th width="40">姓名</th>
							<th width="40">职务</th>
							<th width="140">公司</th>
							<th width="40">地区</th>
							<th width="60">会员状态</th>
							<th width="80">会籍经理</th>
							<th width="120">提交时间</th>
							<th width="80">操作</th>
						</tr>
					</thead>	
					<tbody id ="c_tbody">
					<#if (lists?exists && lists?size>0) >
						<#list lists as clientInfoVo>
						<tr data-uid="${clientInfoVo.user_id}" data-uname="${clientInfoVo.user_id}" >
							<td>${clientInfoVo.id}</td>
							<td>${clientInfoVo.uname}</td>
							<td>${clientInfoVo.position}</td>
							<td>${clientInfoVo.com_name}</td>
							<td>${clientInfoVo.province}</td>
							<td>${clientInfoVo.statusName}</td>
							<td>${clientInfoVo.memshipName}</td>
							<td>${clientInfoVo.infoSubmitTime?string("yyyy-MM-dd HH:mm:ss")}</td>
							<td>
								<a href="/crm/secondaudit/secondAuditPage?uid=${clientInfoVo.user_id}" class="btn btn-xs btn-primary">审核会员</a> 
								<a href="/crm/secondaudit/secondAuditViewPage?uid=${clientInfoVo.user_id}"  class=" btn btn-xs btn-primary">查看</a>
							</td>
						</tr>
						</#list>
					<#else>
				                暂无数据
				     </#if>
					</tbody>
				</table>
			</div>
			<div class="box-footer">
			<!--	<a id="auditRecord-create-btn" href="javascript:;" class="btn btn-success pull-left">新建字典项</a> -->
				<@zhd.page pm url />
			</div>
		</div>

        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
    <#include "/inc/main-footer.ftl">
    <!-- Control Sidebar -->
      <!-- /.control-sidebar -->
      <!-- Add the sidebar's background. This div must be placed
           immediately after the control sidebar -->
      
    </div><!-- ./wrapper -->


    <#include "/inc/base-script.ftl">
    <!-- 自定义script -->
	<#include "/script/auditRecord/auditScript.ftl">
	<script>
	$(function(){
     $('.my_timepicker').datetimepicker({
        dayViewHeaderFormat: 'YYYY MMMM',
        locale: 'zh-cn',
        format: 'YYYY-MM-DD HH:mm:ss',
        keepInvalid: true
    });  
  // 续费开始  
  	
    $('#subTime1,#subTime2').data('DateTimePicker').useCurrent(false);
   
    $("#subTime1").on("dp.change", function (e) {
        $('#subTime2').data("DateTimePicker").minDate(e.date);
    });
    $("#subTime2").on("dp.change", function (e) {
        $('#subTime1').data("DateTimePicker").maxDate(e.date);
    }); 
});
</script>
  </body>
</html>

